package com.qfedu.yanglao20admin.companion.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.qfedu.yanglao20.entity.companion.Companion;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author yujie
 * @data 2023/4/22 18:18
 */
@Data
@ApiModel(value = "陪护员展示信息")
public class CompanionVO extends Companion {


    @ApiModelProperty("用户名")
    private String username;
    @ApiModelProperty("姓名")
    private String companionName;
    @ApiModelProperty("电话")
    private String phone;
    @ApiModelProperty("区域")
    private String region;
    @ApiModelProperty("回访率")
    private double returns;
    @ApiModelProperty("满意度")
    private double satisfaction;
    @ApiModelProperty("订单数")
    private Integer orders;
    @ApiModelProperty("创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    @ApiModelProperty("排序")
    private Integer sort;
    @ApiModelProperty("状态 1启用0禁用")
    private Integer info;
}
